GXPostScriptScanStatusText
QuickDraw GX sends theGXPostScriptScanStatusText
message after getting a printer status message back from the printer to interpret and prepare the status string. You can override theGXPostScriptScanStatusText
message if the status string has information you need or if the format of this string is not standard and cannot be interpreted by QuickDraw GX's default implementation. Your override of theGXPostScriptScanStatusText
message must match the following
formal declaration:
OSErr MyPostScriptScanStatusText (Handle statusTextHdl);
statusTextHdl
- A handle to the text returned in the
GXPostScriptGetStatusText
message.- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
QuickDraw GX sends theGXPostScriptScanStatusText
message every time any text is returned from theGXPostScriptGetStatusText
message (that is, when the message does not return an empty buffer). TheGXPostScriptScanStatusText
message performs error detection and reporting, using the Postscript scan ('scan'
) resource to interpret the string. Normally, the only text returned by a printer is an error. This message searches the text buffers to determine the printing status and interprets the status string to determine the state of the printing process.The default implementation of the
GXPostScriptScanStatusText
message searches the text string for special keywords that determine the status of the printing device. It also reformats the string for reading by a user and calls theGXReportStatus
function to display the string in the desktop printer window.You need to override this message if the status string holds information that is meaningful only to you or if the device to which the workstation is connected has a format different from that of Apple LaserWriters. Only the Apple LaserWriter format is understood by the default implementation of this message.
SPECIAL CONSIDERATIONS
You can partially or totally override theGXPostScriptScanStatusText
message.RESULT CODES
The default implementation of the
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. GXPostScriptScanStatusText
message can also return the communications errors that are listed in Table 4-2 on page 4-42.SEE ALSO
TheGXPostScriptGetStatusText
message is described on page 4-106.The
GXReportStatus
function is described on page 5-17 in the chapter "Printing Functions for Message Overrides."
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help